package Com.Isman.WebService.ComplexType;

import java.io.Serializable;

import org.ksoap2.serialization.SoapObject;

public class Room implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private String amenities;
	private int available;
	private String badSize;
	private int hotelID;
	private double price;
//	private Image roomImage;
	private int roomID;
	
	private int roomMax;
	private String roomName;
	
	//constructor
	public Room() {	}
	public Room(SoapObject soap) {
		hotelID 	= Integer.parseInt(soap.getProperty("HotelID").toString());
		roomID 		= Integer.parseInt(soap.getProperty("RoomID").toString());
		roomName 	= soap.getProperty("RoomName").toString();
		roomMax 	= Integer.parseInt(soap.getProperty("RoomMax").toString());
		available 	= Integer.parseInt(soap.getProperty("Available").toString());
		price 		= Double.parseDouble(soap.getProperty("Price").toString());
		//roomImage	= new Image(((SoapObject)soap.getProperty("")));
		badSize		= soap.getProperty("BadSize").toString();
		amenities	= soap.getProperty("Amenities").toString();
		
	
	}
	public String getAmenities() {
		return amenities;
	}
	public int getAvailable() {
		return available;
	}
	public String getBadSize() {
		return badSize;
	}
	public int getHotelID() {
		return hotelID;
	}
	public double getPrice() {
		return price;
	}
	public int getRoomID() {
		return roomID;
	}
	public int getRoomMax() {
		return roomMax;
	}
	public String getRoomName() {
		return roomName;
	}
	public void setAmenities(String amenities) {
		this.amenities = amenities;
	}
	public void setAvailable(int available) {
		this.available = available;
	}
	public void setBadSize(String badSize) {
		this.badSize = badSize;
	}
	public void setHotelID(int hotelID) {
		this.hotelID = hotelID;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public void setRoomID(int roomID) {
		this.roomID = roomID;
	}
	public void setRoomMax(int roomMax) {
		this.roomMax = roomMax;
	}
	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	

}
